from Utils.router import router
from Utils.zj import timeklpk


@router.get('/zj/twoslide', tags=['中部数据'], summary='中部第二行数据')
async def get_twoslide():
    thistimekl = timeklpk.get_kl_Contemporaneous_period()
    VisitDepth = timeklpk.get_kl_Travel_depth()
    Percentage = timeklpk.get_kl_period_piont()
    Monthkl = timeklpk.get_m_kl()/10000
    return {'thistimekl': thistimekl, 'VisitDepth': VisitDepth, 'Percentage': Percentage, 'Monthkl': float('%.2f' % Monthkl)}
